package com.lwy.goods.controller;

import com.lwy.common.Result;
import com.lwy.common.StatusCode;
import com.lwy.goods.pojo.Brand;
import com.lwy.goods.pojo.TbBrand;
import com.lwy.goods.service.impl.BrandServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("brand")
public class BrandController {


    @Resource
    BrandServiceImpl  brandService;

    @RequestMapping("list")
    public Result<List<TbBrand>> list(){
        List<TbBrand> list = brandService.list();
        return new Result<List<TbBrand>>(true, StatusCode.OK,"商品查询",list);
    }
}
